package controllers

import "fmt"

// 虚拟接口
// @router /api/:virtualInterface [get,post,put,delete]
func (c *MainController) Api() {
	vi := c.Ctx.Input.Param(":virtualInterface")
	data := c.pd()
	fmt.Println(data)
	c.Data["json"] = vi
	c.ServeJSON()
	c.StopRun()
}
